﻿namespace PMngr.Main
{
    public static class Utilities
    {
        public static readonly string CaptionTitle = "太原市人员调动管理系统";

        public static readonly string Null = "无";
        // System login
        public static readonly string NoConsistency = "两次输入的密码不一致！";
        public static readonly string NoModified = "新密码与旧密码一致！";
        public static readonly string OldPasswordError = "旧密码不正确！";
        public static readonly string PasswordUpdated = "用户密码成功变更！";
        public static readonly string LogoutConfirmed = "你确定要退出系统吗？";
        public static readonly string LoginPrompt = "用户【{0}】登录！";
        public static readonly string PasswordError = "用户名或密码不正确，请重新输入！";
        // GridGroupingControl
        public static readonly string CategoryCaption = "{CategoryCaption}：{RecordCount}条记录";
        public static readonly string Grouping = "可以选择分组字段";

        public static readonly string MajorUnitSelected = "主管部门";
        public static readonly string UnitSelected = "下属单位";
        public static readonly string UnitRequired = "单位名称必填项！";
        public static readonly string MajorUnitRequired = "主管部门名称必填项！";
        public static readonly string MajorUnitFirstRequired = "请先选择主管部门！";
        public static readonly string NameDuplicated = "【{0}】名称重复，请重新录入！";
        public static readonly string SuccessUpdated = "修改【{0}】成功！";
        public static readonly string SuccessUnitAdded = "成功创建单位【{0}】。";
        public static readonly string SuccessMajorUnitAdded = "成功创建主管部门【{0}】。";
        public static readonly string SuccessAdded = "成功创建【{0}】。";
        public static readonly string SuccessDeleted = "成功删除【{0}】！";
        public static readonly string UnitKindSelected = "选择单位性质";

        public static readonly string DuplicatedUnit1 = "与已有单位重复：\r\n{0}";
        public static readonly string DuplicatedUnit2 = "导入文件中单位重复：\r\n{0}";
        public static readonly string DuplicatedUnit = "{0}\r\n请到单位管理中进行修改！";

        public static readonly string PrintApprovalDoc = "打印审批卡片【{0}】！";
        public static readonly string ProfileDeleted = "成功删除【{0}】调动信息！";

        public static readonly string SuccessOptionAdded = "成功创建选项【{0}】！";
        public static readonly string SuccessOptionDeleted = "成功删除选项【{0}】！";
        public static readonly string SuccessOptionUpdated = "修改选项【{0}】成功！";

        // Delete
        public static readonly string DeleteConfirmed = "你确定要删除该条记录吗？";
        public static readonly string DeleteError = "删除出现问题：由于存在关联项，无法删除！";
        public static readonly string DeleteUnitError = "由于存在下属单位，无法删除！";
        public static readonly string DeleteInnerError = "删除出现问题：{0}";
        // System management
        public static readonly string OptionNameRequired = "选项名称必填项！";
        public static readonly string OpenExcelConfirmed = "你要现在打开这个Excel文件吗？";
        public static readonly string OpenWordConfirmed = "你要现在打开这个Word文件吗？";
        public static readonly string OpenPdfConfirmed = "你要现在打开这个Pdf文件吗？";
        public static readonly string Approved = "该条记录已审批结束！";
        public static readonly string ComfirmApproved = "该条记录已审批结束，是否确实需要删除？";
        public static readonly string FirstRequired = "请先选择需要审批的记录！";

        public static readonly string ApprovingItems = "审批【{0}】条单人调动记录！";
        public static readonly string ApprovingWholeItems = "审批【{0}】笔整体划转记录！";

        public static readonly string FirstBackupDir = "必须先选择备份目录！";
        public static readonly string BackupCompleted = "备份已完成，请查看【{0}】文件！";
        public static readonly string FirstBackupFile = "必须先选择备份数据文件！";
        public static readonly string SuggestToRestart = "恢复已完成，建议重新启动程序！";
        public static readonly string ClearInvalidData = "无效数据清除完毕，建议重新启动程序！";
        public static readonly string BackupConfirmed = "建议在数据恢复之前，先进行备份！\n你确信要进行数据恢复吗？";
        public static readonly string FirstImportFile = "必须先选择导入文件！";
        public static readonly string ImportPrompt = "从文件【{0}】导入{1}条记录！";
        public static readonly string UnitDescription = "【实有人数：{0}】\r\n【备注：{1}】";
        public static readonly string ImportError = "可能原因：\r\n1、关闭导入文件后重新导入！\r\n2、导入文件格式不合法，请检查内容后重新导入！";
        public static readonly string InOutUnitRequired = "划入单位、划出单位是必填项！";
        public static readonly string InOutUnitIdentical = "划入单位、划出单位不能相同，重新选择！";
        public static readonly string TemplateCompleted = "模板:{0}已生成！";

    }
}
